<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userMain.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<script type="text/javascript" src="js/showtime.js"></script>

  </head>
  
  <body onload="showTime();">
    <s:if test="#session.currentUser==null">
  		<jsp:forward page="../login.jsp"></jsp:forward>
  	</s:if>  
  	<div id="top">
   		 	<div id="welcome">
   		 		<font id="welfont">视野网络书店欢迎您</font>
   		 		<font id="showtime" class="timestyle"></font>
   		 		<div id="loginstyle">
	   		 		<s:if test="#session.currentUser==null">
	   		 				<a href="jsp/login.jsp" target="_top" >登录</a>
		    				<a href="jsp/user/register.jsp" target="_top">注册</a>    				
	    			</s:if>
	    			<s:else>
							<s:property value="#session.currentUser.username" />
							(<s:property value="#session.currentUser.privilege" />)
							<a href="jsp_user_detail.action" target="centerframe" class="distance">修改信息</a>
							<a href="jsp_logout.action" target="_top" class="distance">退出</a>
					</s:else>
    			</div>
   		 	</div>
   		 	<div id="header">
   		 		<img src="img/logo.png" id="logopos"/>
   		 		<div id="menu">
   		 			<a href="jsp/admin/booklist.jsp" target="centerframe" >图书列表</a>
	    			<a href="jsp_admin_orderselect.action" target="centerframe" >客户订单</a>
	    			<a href="jsp_admin_userselect.action" target="centerframe" >客户信息</a>
	    			<a href="jsp_admin_announceselect.action" target="centerframe">书店公告</a>
	    			<a href="jsp_admin_messageselect.action" target="centerframe">客户留言</a>
   		 		</div> 
				<div class="line">
   		 			<div id="boldline"></div>
   		 		</div>	
   		 	</div>
   		 	
  		</div>
   <!--  <div>
    	<table>
    		<tr>
    			<td rowspan="3" align="left" style="font-size: 20px;width: 300px;">网络书店</td>
    			<td>欢迎光临，</td>	
    			<td colspan="2">
					<s:property value="#session.currentUser.username" />
					(<s:property value="#session.currentUser.privilege" />)    			
    			</td>
    			<td colspan="3" align="right" id="showtime"></td>
    			<td><a href="jsp_logout.action" target="_top">退出</a></td>
    		</tr>
    		<tr>
    			<td colspan="8"><hr /></td>
    		</tr>
    		<tr>
    			<td><a href="jsp/admin/booklist.jsp" target="centerframe">图书列表</a></td>
    			<td><a href="jsp_admin_orderselect.action" target="centerframe">客户订单</a></td>
    			<td><a href="jsp_admin_userselect.action" target="centerframe">客户信息</a></td>
    			<td><a href="jsp_admin_announceselect.action" target="centerframe">书店公告</a></td>
    			<td><a href="jsp_admin_messageselect.action" target="centerframe">客户留言</a></td>
    		</tr>
    	</table>
    </div>
    --> 
  </body>
</html>
